package entity

import (
	"github.com/lib/pq"
)

type FirmwaresRecord struct {
	Id int64 `gorm:"column:id;type:BIGINT;primary_key" json:"id"`

	FirmwareId int64 `gorm:"column:firmware_id;type:BIGINT" json:"firmware_id"`

	TacticsId int64 `gorm:"column:tactics_id;type:BIGINT" json:"tactics_id"`

	Version string `gorm:"column:version;type:VARCHAR(255)" json:"version"`

	EbikesType pq.Int64Array `gorm:"column:ebikes_type;type:JSON" json:"ebikes_type"`

	FirmwaresName string `gorm:"column:firmwares_name;type:VARCHAR(255)" json:"firmwares_name"`

	CreatedAt int64 `gorm:"column:created_at;type:BIGINT" json:"created_at"`
}

func (a *FirmwaresRecord) TableName() string {
	return "firmwares_records"
}
